
<input
	type="hidden" id="show_filter"
	value="<?php echo $metaModel["showFilter"];?>" />
<input
	type="hidden" id="agent_id" value="<?php echo $metaModel["agentId"];?>" />
<input
	type="hidden" id="affiliate_id"
	value="<?php echo $metaModel["affiliateId"];?>" />
<?php if($showFilter){?>
<div class="container_24">

<div class="grid_2" style="padding-top: 10px"><label> From</label></div>
<div class="grid_5"><input type="text" id="fromdate" name="fromdate"
	value="<?php echo $metaModel["fromdate"]->format("Y-m-d");?>" readonly="readonly" /></div>
<div class="grid_2" style="padding-top: 10px"><label> To</label></div>
<div class="grid_5"><input type="text" id="todate" name="todate"
	value="<?php echo $metaModel["todate"]->format("Y-m-d");?>" readonly="readonly" /></div>
<div class="grid_2"><input type="button" class=".button" id="submit"
	value="Submit" /></div>
</div>
<?php }else{?>
<?php $drillDownName = $metaModel["agentName"] ? "Agent ". $metaModel["agentName"]:"Affiliate: ". $metaModel["affiliateName"]; ?>
<fieldset><label> Member Win Loss Of <?php echo $drillDownName;?> - <?php echo $metaModel["fromdate"]->format("Y-m-d");?>
-> <?php echo $metaModel["todate"]->format("Y-m-d");?></label>
</div>
<input type="hidden" id="fromdate"
	value="<?php echo $metaModel["fromdate"]->format("Y-m-d");?>" /> <input type="hidden"
	id="todate" value="<?php echo $metaModel["todate"]->format("Y-m-d");?>" /> <?php }?></fieldset>

<div class="clear"></div>

<section class="item">
<div class="content">
<div id="jqgrid-container" style="width: 100%; height: 700px">
<div id="jqgrid-top-pager"></div>
<table id="jqgrid-table" style="border-left: 0px">
	<tr>
		<td></td>
	</tr>
</table>
<div id="jqgrid-bottom-pager"></div>
</div>

</section> <script type="text/javascript">
$(window).load(function() {
	MemberWl.initMemberWl();
});
</script>